import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Member from './views/Member.vue'
import Detail from './views/Detail.vue'
import Account from './views/settings/Account.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/member',
      component: Member
    },
    {
      path: '/detail',
      component: Detail
    },
    {
      path: '/settings',
      component: Account,
      children: [
        { path: 'account', component: Account }
      ]
    }
  ]
})
